<script>
    (function ($) {
        //完成订单
        $(".js_finishStoreOrder").live('click', function (e) {
            e.preventDefault();
            e.stopPropagation();
            alert(2);
            var selectId = $(this).closest("tr").attr("id");
            var roleId = $(this).closest("tr").data("id");
            if (!selectId) {
                alert('请选择要操作记录');
            }

            var clickObj = $(this);
            var url = clickObj.attr("href");
            var cardListBox = clickObj.closest('.cardListBox');
            var lines = $(this).parent().attr('rowspan');
            var notice = '确定执行此操作吗?';
            showConfirm(notice, 1, function () {
                $.post(url, {
                    'id': selectId
                }, function (json) {
                    if (json.info != 'ok') {
                        alert(json.info);
                    } else {
                        showMsg('操作成功!');
                        location.href = location.href;
                    }
                }, 'json');
            });
            return false;
        });
    })(jQuery);
</script>